import { createApp } from 'vue'
import App from './App.vue'
import 'normalize.css'
/** 全局样式 */
import '@/styles/index.scss'
import router from './router'
import pinia from './stores'
import mitt from 'mitt'
/** 路由权限 */
import '@/permission'
/** 自定义指令 */
import directive from '@/directives'
/** 全局组件 */
import components from '@/components/library'

const app = createApp(App)

// 全局事件总线
app.config.globalProperties.$bus = mitt()

app.use(pinia)
app.use(router)
app.use(directive)
app.use(components)

app.mount('#app')
